import Vuex from 'vuex'
import Vue from 'vue'
Vue.use(Vuex)
const store = new Vuex.Store ({
	state: {
		selected: '',
		offsetT: 0,
		offsetL: 0,
	},
	mutations: {
		setSelect(state, val) {
			state.selected = val
			// console.log('22222',state.selected);
		},
		setOffset(state, offset) {
			state.offsetT = offset.t
			state.offsetL = offset.l
			console.log('offset',state.offsetL);
		}
	}
})

export default store